<?php
include('../../inc/global.inc');
include("../islogin.php");
if($_POST[act]){

	$_tel = $_POST['m_phone'];
	 $_title=$_POST[box_title];
	 sendtel($_tel,$_title);

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
</head>
</HEAD>
<BODY>
<center>
<form id="form1" name="form1" method="post" action="" onSubmit="return checkform()">
  <table width="721" height="54" border="0" align="center" cellpadding="0" cellspacing="0" class="ta">
    <tr>
      <td height="50" colspan="2" bgcolor="#EBEBEA"><h3>手机短信群发</h3></td>
    </tr>
  </table>
  <table width="721" height="92" border="0" align="center" cellpadding="0" cellspacing="1" class="ta">
    <tr>
      <td width="105" height="26" align="center" bgcolor="#EBEBEA">手机号码</td>
      <td width="366" bgcolor="#FFFFFF"><textarea name="m_phone" cols="50" rows="10" id="m_phone"></textarea></td>
      <td width="246" align="center" bgcolor="#FFFFFF"><input type="button" onClick="window.open ('phone.php', 'newwindow', 'height=500, width=600, top=0, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')" value="导入手机号码"></td>
    </tr>
    <tr>
      <td width="105" height="30" align="center" bgcolor="#EBEBEA">短信内容</td>
      <td colspan="2" bgcolor="#FFFFFF"><textarea name="box_title" cols="40" rows="4" id="box_title"><?=$_POST[box_title]?>
      </textarea></td>
    </tr>
    <tr>
      <td height="36" colspan="3" align="center" bgcolor="#FAFAFA"><input type="hidden" name="act" value="job.sandib2b.cn" /><input name="Submit" type="submit" class="picbutt" value="提交" /></td>
    </tr>
  </table>
</form>
</BODY>
</HTML>

<script language="javascript">
function $(id){
return document.getElementById(id);
}
function checkform(){
if($("m_phone").value==""){
alert("手机号码不能为空");
$("m_phone").focus();
return false;
}
if($("box_title").value==""){
alert("短信内容不能为空");
$("box_title").focus();
return false;
}

}
</script>